package com.example.weibo.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Name: WeiboDetailVO
 * @Author: 西风残叶
 * @Company: 朝兮网络工作室
 * @Data: 2023/11/19 21:04
 */
public class WeiboDetailVO {
    private Integer id;
    private String content;
    private String url;
    // 设置日期对象的JSON转换格式  timezone 是设置时区 东八区
    @JsonFormat(pattern ="yyyy日MM月dd日 HH:mm:ss",timezone = "GMT+8")
    private Date created;
    private String nickname;

    @Override
    public String toString() {
        return "WeiboDetailVO{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", url='" + url + '\'' +
                ", created=" + created +
                ", nickname='" + nickname + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}
